<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddDiffPriceToPolicyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('policy', function (Blueprint $table) {
            $table->string('diff_price')->after('percentage_price')->nullable()->comment('差价产品类型');
            $table->string('diff_percentage')->after('diff_price')->default(0)->comment('差价产品类型');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
